package com.example.strategypattern;

/**
 * @version 1.0.0
 * @className: Context
 * @description: 环境类
 * @author: zhangjunfa
 * @date: 2022/6/10 16:41
 */
public class Context {
    private AbstractTravle abstractTravle;

    public Context(AbstractTravle abstractTravle) {
        this.abstractTravle = abstractTravle;
    }

    public void travelTool() {
        System.out.println(abstractTravle.getName() + "选择坐" + abstractTravle.getVehicle() + "去西藏旅游");
    }
}
